package com.huaxindata.im.model.emoji;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/4.
 * 表情的一个工具类
 */

public class EmotionUtil {
    public static List<HxEmotion> sHxEmotionList;
    public static final HxEmotion[] EMOTIONS = new HxEmotion[]{
            HxEmotion.fromCodePoint(0x1f604),
            HxEmotion.fromCodePoint(0x1f603),
            HxEmotion.fromCodePoint(0x1f600),
            HxEmotion.fromCodePoint(0x1f60a),
            HxEmotion.fromChar((char) 0x263a),
            HxEmotion.fromCodePoint(0x1f609),
            HxEmotion.fromCodePoint(0x1f60d),
            HxEmotion.fromCodePoint(0x1f618),
            HxEmotion.fromCodePoint(0x1f61a),
            HxEmotion.fromCodePoint(0x1f617),
            HxEmotion.fromCodePoint(0x1f619),
            HxEmotion.fromCodePoint(0x1f61c),
            HxEmotion.fromCodePoint(0x1f61d),
            HxEmotion.fromCodePoint(0x1f61b),
            HxEmotion.fromCodePoint(0x1f633),
            HxEmotion.fromCodePoint(0x1f601),
            HxEmotion.fromCodePoint(0x1f614),
            HxEmotion.fromCodePoint(0x1f60c),
            HxEmotion.fromCodePoint(0x1f612),
            HxEmotion.fromCodePoint(0x1f61e),
            HxEmotion.fromCodePoint(0x1f623),
            HxEmotion.fromCodePoint(0x1f622),
            HxEmotion.fromCodePoint(0x1f602),
            HxEmotion.fromCodePoint(0x1f62d),
            HxEmotion.fromCodePoint(0x1f62a),
            HxEmotion.fromCodePoint(0x1f625),
            HxEmotion.fromCodePoint(0x1f630),
            HxEmotion.fromCodePoint(0x1f605),
            HxEmotion.fromCodePoint(0x1f613),
            HxEmotion.fromCodePoint(0x1f629),
            HxEmotion.fromCodePoint(0x1f62b),
            HxEmotion.fromCodePoint(0x1f628),
            HxEmotion.fromCodePoint(0x1f631),
            HxEmotion.fromCodePoint(0x1f620),
            HxEmotion.fromCodePoint(0x1f621),
            HxEmotion.fromCodePoint(0x1f624),
            HxEmotion.fromCodePoint(0x1f616),
            HxEmotion.fromCodePoint(0x1f606),
            HxEmotion.fromCodePoint(0x1f60b),
            HxEmotion.fromCodePoint(0x1f637),
            HxEmotion.fromCodePoint(0x1f60e),
            HxEmotion.fromCodePoint(0x1f634),
            HxEmotion.fromCodePoint(0x1f635),
            HxEmotion.fromCodePoint(0x1f632),
            HxEmotion.fromCodePoint(0x1f61f),
            HxEmotion.fromCodePoint(0x1f626),
            HxEmotion.fromCodePoint(0x1f627),
            HxEmotion.fromCodePoint(0x1f608),
            HxEmotion.fromCodePoint(0x1f47f),
            HxEmotion.fromCodePoint(0x1f62e),
            HxEmotion.fromCodePoint(0x1f62c),
            HxEmotion.fromCodePoint(0x1f610),
            HxEmotion.fromCodePoint(0x1f615),
            HxEmotion.fromCodePoint(0x1f62f),
            HxEmotion.fromCodePoint(0x1f636),
            HxEmotion.fromCodePoint(0x1f607),
            HxEmotion.fromCodePoint(0x1f60f),
            HxEmotion.fromCodePoint(0x1f611),
            HxEmotion.fromCodePoint(0x1f472),
            HxEmotion.fromCodePoint(0x1f473),
            HxEmotion.fromCodePoint(0x1f46e),
            HxEmotion.fromCodePoint(0x1f477),
            HxEmotion.fromCodePoint(0x1f482),
            HxEmotion.fromCodePoint(0x1f476),
            HxEmotion.fromCodePoint(0x1f466),
            HxEmotion.fromCodePoint(0x1f467),
            HxEmotion.fromCodePoint(0x1f468),
            HxEmotion.fromCodePoint(0x1f469),
            HxEmotion.fromCodePoint(0x1f474),
            HxEmotion.fromCodePoint(0x1f475),
            HxEmotion.fromCodePoint(0x1f471),
            HxEmotion.fromCodePoint(0x1f47c),
            HxEmotion.fromCodePoint(0x1f478),
            HxEmotion.fromCodePoint(0x1f63a),
            HxEmotion.fromCodePoint(0x1f638),
            HxEmotion.fromCodePoint(0x1f63b),
            HxEmotion.fromCodePoint(0x1f63d),
            HxEmotion.fromCodePoint(0x1f63c),
            HxEmotion.fromCodePoint(0x1f640),
            HxEmotion.fromCodePoint(0x1f63f),
            HxEmotion.fromCodePoint(0x1f639),
            HxEmotion.fromCodePoint(0x1f63e),
            HxEmotion.fromCodePoint(0x1f479),
            HxEmotion.fromCodePoint(0x1f47a),
            HxEmotion.fromCodePoint(0x1f648),
            HxEmotion.fromCodePoint(0x1f649),
            HxEmotion.fromCodePoint(0x1f64a),
            HxEmotion.fromCodePoint(0x1f480),
            HxEmotion.fromCodePoint(0x1f47d),
            HxEmotion.fromCodePoint(0x1f4a9),
            HxEmotion.fromCodePoint(0x1f525),
            HxEmotion.fromChar((char) 0x2728),
            HxEmotion.fromCodePoint(0x1f31f),
            HxEmotion.fromCodePoint(0x1f4ab),
            HxEmotion.fromCodePoint(0x1f4a5),
            HxEmotion.fromCodePoint(0x1f4a2),
            HxEmotion.fromCodePoint(0x1f4a6),
            HxEmotion.fromCodePoint(0x1f4a7),
            HxEmotion.fromCodePoint(0x1f4a4),
            HxEmotion.fromCodePoint(0x1f4a8),
            HxEmotion.fromCodePoint(0x1f442),
            HxEmotion.fromCodePoint(0x1f440),
            HxEmotion.fromCodePoint(0x1f443),
            HxEmotion.fromCodePoint(0x1f445),
            HxEmotion.fromCodePoint(0x1f444),
            HxEmotion.fromCodePoint(0x1f44d),
            HxEmotion.fromCodePoint(0x1f44e),
            HxEmotion.fromCodePoint(0x1f44c),
            HxEmotion.fromCodePoint(0x1f44a),
            HxEmotion.fromChar((char) 0x270a),
            HxEmotion.fromChar((char) 0x270c),
            HxEmotion.fromCodePoint(0x1f44b),
            HxEmotion.fromChar((char) 0x270b),
            HxEmotion.fromCodePoint(0x1f450),
            HxEmotion.fromCodePoint(0x1f446),
            HxEmotion.fromCodePoint(0x1f447),
            HxEmotion.fromCodePoint(0x1f449),
            HxEmotion.fromCodePoint(0x1f448),
            HxEmotion.fromCodePoint(0x1f64c),
            HxEmotion.fromCodePoint(0x1f64f),
            HxEmotion.fromChar((char) 0x261d),
            HxEmotion.fromCodePoint(0x1f44f),
            HxEmotion.fromCodePoint(0x1f4aa),
            HxEmotion.fromCodePoint(0x1f6b6),
            HxEmotion.fromCodePoint(0x1f3c3),
            HxEmotion.fromCodePoint(0x1f483),
            HxEmotion.fromCodePoint(0x1f46b),
            HxEmotion.fromCodePoint(0x1f46a),
            HxEmotion.fromCodePoint(0x1f46c),
            HxEmotion.fromCodePoint(0x1f46d),
            HxEmotion.fromCodePoint(0x1f48f),
            HxEmotion.fromCodePoint(0x1f491),
            HxEmotion.fromCodePoint(0x1f46f),
            HxEmotion.fromCodePoint(0x1f646),
            HxEmotion.fromCodePoint(0x1f645),
            HxEmotion.fromCodePoint(0x1f481),
            HxEmotion.fromCodePoint(0x1f64b),
            HxEmotion.fromCodePoint(0x1f486),
            HxEmotion.fromCodePoint(0x1f487),
            HxEmotion.fromCodePoint(0x1f485),
            HxEmotion.fromCodePoint(0x1f470),
            HxEmotion.fromCodePoint(0x1f64e),
            HxEmotion.fromCodePoint(0x1f64d),
            HxEmotion.fromCodePoint(0x1f647),
            HxEmotion.fromCodePoint(0x1f3a9),
            HxEmotion.fromCodePoint(0x1f451),
            HxEmotion.fromCodePoint(0x1f452),
            HxEmotion.fromCodePoint(0x1f45f),
            HxEmotion.fromCodePoint(0x1f45e),
            HxEmotion.fromCodePoint(0x1f461),
            HxEmotion.fromCodePoint(0x1f460),
            HxEmotion.fromCodePoint(0x1f462),
            HxEmotion.fromCodePoint(0x1f455),
            HxEmotion.fromCodePoint(0x1f454),
            HxEmotion.fromCodePoint(0x1f45a),
            HxEmotion.fromCodePoint(0x1f457),
            HxEmotion.fromCodePoint(0x1f3bd),
            HxEmotion.fromCodePoint(0x1f456),
            HxEmotion.fromCodePoint(0x1f458),
            HxEmotion.fromCodePoint(0x1f459),
            HxEmotion.fromCodePoint(0x1f4bc),
            HxEmotion.fromCodePoint(0x1f45c),
            HxEmotion.fromCodePoint(0x1f45d),
            HxEmotion.fromCodePoint(0x1f45b),
            HxEmotion.fromCodePoint(0x1f453),
            HxEmotion.fromCodePoint(0x1f380),
            HxEmotion.fromCodePoint(0x1f302),
            HxEmotion.fromCodePoint(0x1f484),
            HxEmotion.fromCodePoint(0x1f49b),
            HxEmotion.fromCodePoint(0x1f499),
            HxEmotion.fromCodePoint(0x1f49c),
            HxEmotion.fromCodePoint(0x1f49a),
            HxEmotion.fromChar((char) 0x2764),
            HxEmotion.fromCodePoint(0x1f494),
            HxEmotion.fromCodePoint(0x1f497),
            HxEmotion.fromCodePoint(0x1f493),
            HxEmotion.fromCodePoint(0x1f495),
            HxEmotion.fromCodePoint(0x1f496),
            HxEmotion.fromCodePoint(0x1f49e),
            HxEmotion.fromCodePoint(0x1f498),
            HxEmotion.fromCodePoint(0x1f48c),
            HxEmotion.fromCodePoint(0x1f48b),
            HxEmotion.fromCodePoint(0x1f48d),
            HxEmotion.fromCodePoint(0x1f48e),
            HxEmotion.fromCodePoint(0x1f464),
            HxEmotion.fromCodePoint(0x1f465),
            HxEmotion.fromCodePoint(0x1f4ac),
            HxEmotion.fromCodePoint(0x1f463),
            HxEmotion.fromCodePoint(0x1f4ad),
    };
    private static void init(){
        if (sHxEmotionList == null) {
            sHxEmotionList = new ArrayList<>();
        }
        if (sHxEmotionList.size() > 0) {
            return;
        }
        int count=EMOTIONS.length;
        for(int i=0;i< count;i++){
            sHxEmotionList.add(EMOTIONS[i]);
        }
    }
    public static List<HxEmotion> getTotalEmotion(){
        if (sHxEmotionList == null) {
            init();
        }
        return sHxEmotionList;
    }
}
